package hu;

import java.util.*;

public class printf_sort {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] str = sc.nextLine().split(" ");
        List<int[]> list = new ArrayList<>();
        for (int i = 0; i < str.length; i++) {
            list.add(new int[]{i, Integer.parseInt(str[i])});
        }
        Collections.sort(list, (a, b)->{
            return b[1] - a[1];
        });
        for (int i = 0; i < str.length; i++) {
            if(i != str.length - 1)
            System.out.print(list.get(i)[0] + " ");
            else System.out.println(list.get(i)[0]);
        }
    }
}
/*
1 1 9 1 1 1
 */